#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>


void copy(char arr1[], char arr2[])
{
	int i = 0;
	while (arr2[i] != '\0')
	{
		arr1[i] = arr2[i];
		i++;
	}
}

int main()
{
	char arr1[10] = { 0 };
	char arr2[] = "abcddsae";
	int length = sizeof(arr2) / sizeof(arr2[0]);
	copy(arr1, arr2);
	for (int i = 0; i <length-1; i++)
	{
		printf("%c", arr1[i]);
	}
	return 0;
}

	
